﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EasyAdmin.Web.EasySwagger
{
    public static class EasyApiGroups
    {
        /// <summary>
        /// 缺省组名
        /// </summary>
        public const string Default = "default";
        /// <summary>
        /// 测试组名
        /// </summary>
        public const string Test = "test"; 

        public static readonly List<EaysApiGroup> Groups = new List<EaysApiGroup>
        {
            new EaysApiGroup(Default, "默认组", "这是一个默认的API组"),
            new EaysApiGroup(Test, "测试组", "这是一个测试的API组")
        };
    }

    public class EaysApiGroup
    {
        /// <summary>
        /// 组名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }

        public EaysApiGroup(string name, string title, string description) {
            this.Name = name;
            this.Title = title;         
            this.Description = description;
        }
    }
}
